package com.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;

/**
 * 2024/5/27 科室部门实体类信息 Cjj 16:40
 **/

public class Depatrment {
    private String name;//科室名

    private ArrayList<Doctor> doctors=new ArrayList<>();//进行存入医生对象

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<Doctor> getDoctors() {
        return doctors;
    }

    public void setDoctors(ArrayList<Doctor> doctors) {
        this.doctors = doctors;
    }

    public int getNumber(){
        return doctors.size();
    }
}
